<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加供应商</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.1/css/bootstrap.min.css" rel="stylesheet">
    <style>
        /* 自定义样式：设置输入框宽度为父容器的 50% */
        .half-width {
            width: 50%;
        }
    </style>
</head>
<body>
<h1>添加供应商</h1>
<form action="${pageContext.request.contextPath}/shang/add" method="post">
    <label for="name">供应商名称:</label>
    <input type="text" class="form-control half-width" id="name" name="name" required><br><br>

    <label for="dizhi">地址:</label>
    <input type="text" class="form-control half-width" id="dizhi" name="dizhi" required><br><br>

    <label for="phone">电话:</label>
    <input type="tel" class="form-control half-width" id="phone"  name="phone"  required><br><br>
    <input type="submit" value="提交">
</form>
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap/5.3.1/js/bootstrap.bundle.min.js"></script>
</body>
</html>
